package com.jiexin.dao;

import com.jiexin.beans.DescPageQuery;
import com.jiexin.model.PlmDescription;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlmDescriptionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PlmDescription record);

    int insertSelective(PlmDescription record);

    PlmDescription selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlmDescription record);

    int updateByPrimaryKey(PlmDescription record);

    int count(@Param("page") DescPageQuery page);

    List<PlmDescription> getPage(@Param("page") DescPageQuery page);

    int countByItemTypeAndAttrName(@Param("itemType") String itemType, @Param("attrName") String attrName);

    int countByItemTypeAndAttrId(@Param("itemType") String itemType, @Param("attrId") Integer attrId);

    int countByItemTypeAndSeq(@Param("itemType") String itemType, @Param("seq") Integer seq);
}